﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MyPSDALayer
{
    [MetadataType(typeof(ResoruceMetaData))]
    public partial class Resource
    {
        private class ResoruceMetaData
        {
            [Required(ErrorMessage = "资源名不能为空")]
            [Display(Name = "资源名")]
            public string ResourceName { get; set; }
            [Required(ErrorMessage = "资源路径不能为空")]
            [Display(Name = "资源路径")]
            public string Url { get; set; }
            [Display(Name = "所属菜单")]
            public string Mode { get; set; }
            [Display(Name = "父菜单")]
            public string ParentMode { get; set; }
        }
    }
}
